package com.yunhe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName("storage")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Storage implements Serializable {
    private static final long serialVersionUID=1L;
    //测试：不写type:主键生成策略;
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("仓库编号")
    private Integer id;

    @ApiModelProperty("仓库名称")
    private String name;
    @ApiModelProperty("备注信息")
    private String remark;
}